import type { DelFileRequest, SaveImg, SearchFileRequest, SoftVersion } from '@/types/img'
import type { BaseRequest } from '@/types/job'
import { http } from '@/utils/http'

export const DelFileAPI = (data: DelFileRequest) => {
  return http<{}>({
    method: 'POST',
    url: '/File/DelFile',
    data,
  })
}
export const SearchFileAPI = (data: SearchFileRequest) => {
  return http<SaveImg[]>({
    method: 'POST',
    url: '/File/SearchFile',
    data,
  })
}
export const SearchFileOneAPI = (data: SearchFileRequest) => {
  return http<SaveImg>({
    method: 'POST',
    url: '/File/SearchFileOne',
    data,
  })
}
export const GetVersionAPI = (data: BaseRequest) => {
  return http<SoftVersion>({
    method: 'POST',
    url: '/User/GetVersion',
    data,
  })
}
